Pass a dynamic structure by reference? [C]

Posted by Blackbinary on Stack Overflow See other posts from Stack Overflow or by Blackbinary
Published on 2010-03-30T15:06:34Z Indexed on 2010/03/30 15:13 UTC
Read the original article Hit count: 199

How do i pass a structure like :

struct data {
     int x;
};

/*MAIN*/

struct data *root;

by reference to a function?

Thanks for any help!

© Stack Overflow or respective owner

Related posts about c

    Related posts about pass-by-reference